﻿using System;

namespace Sustainalytics.Reporting.BusinessLogic
{
    public class ReportingServiceClientException : Exception
    {

        public ReportingServiceClientException()
        {

        }

        public ReportingServiceClientException(string message)
            : base(message)
        {

        }

        public ReportingServiceClientException(string message, Exception innerException)
            : base(message, innerException)
        {

        }

        protected ReportingServiceClientException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
            : base(info, context)
        {

        }


        public int ErrorStatusCode
        {
            get;
            set;
        }


        public string ErrorMessage
        {
            get;
            set;
        }


        public System.Net.HttpStatusCode HttpStatusCode { get; set; }

        public override string ToString()
        {
            return string.Format("[ErrorMessage: {0}, ErrorStatusCode: {1}]", ErrorMessage, ErrorStatusCode);
        }
    }
}
